package enterprise.web.toolkit.controller.account;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.apache.log4j.Logger;

/**
 * @since 14/11/2012
 * 
 * @author regisrocha
 * 
 * 
 */
@Path("/account")
public class AccountController {

	/**
	 * LOG
	 */
	private static final Logger LOG = Logger.getLogger(AccountController.class);

	// default constructor
	public AccountController() {
	}

	@POST
	@Path("/create")
	@Produces(MediaType.APPLICATION_JSON)
	public String criarConta(@PathParam("email") String email, @PathParam("gender") String gender,
			@PathParam("lastname") String lastname, @PathParam("password") String password,
			@PathParam("username") String username, @PathParam("firstname") String firstname,
			@PathParam("mobilephone") String mobilephone, @PathParam("birthday") String birthday) {

		LOG.info("RESTful services, criarConta");

		// CRIAR EJB PARA CRIAR CONTA.

		return "ok";
	}
}
